import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import App from "./App";
import { AliveScope } from "react-activation";
import reportWebVitals from "./reportWebVitals";
import { HashRouter } from "react-router-dom";

// 获取根节点
const rootElement = document.getElementById("root") as HTMLElement;

// 创建根实例
const root = ReactDOM.createRoot(rootElement);

// 渲染应用
root.render(
  <AliveScope>
    <HashRouter>
      <App />
    </HashRouter>
  </AliveScope>
);

// 性能监测
reportWebVitals();
